// Copyright (c) 2025-present AutoStories Contributors.
// All contributors are listed in CONTRIBUTORS.yaml at monorepo root.
//
// AutoStories is licensed under Mulan PSL v2.
// You can use this software according to the terms
// and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
//
//   http://license.coscl.org.cn/MulanPSL2
//
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
// See the Mulan PSL v2 for more details.
//
// 上述开源协议注释乃程序自动生成，请勿编辑
// === Auto generated, DO NOT EDIT ABOVE ===

import 'package:auto_stories/auto_stories.dart';
import 'package:autostories/locales.dart';
import 'package:flutter/widgets.dart';

class Locale extends LocaleBase {
  const Locale({
    required super.name,
    required super.id,
    super.direction = TextDirection.ltr,
  });
}

LocaleAdapter localesOf(List<LocaleID> settings) => LocaleAdapter<Locale>(
  settings: settings,
  locales: buildInLocales,
  defaultLocale: zhHansCN,
);

const List<Locale> buildInLocales = [
  arSA,
  enGB,
  enUS,
  zhHansCN,
  zhHantHK,
  zhHansSG,
];
